// 1、将下面异步代码使用Promise的方式改进

// setTimeout(function() {
//     var a = 'hello';
//     setTimeout(function() {
//         var b = 'lagou';
//         setTimeout(function() {
//             var c = 'I ♥ U'
//             console.log();
            
//         }, 10)
//     }, 10)
// }, 10)


let p1 = new Promise((resolve, reject) => {
    resolve('hello ')
})
let p2 = new Promise((resolve, reject) => {
    resolve('lagou ')
})
let p3 = new Promise((resolve, reject) => {
    resolve('I ♥ U')
})
Promise.all([p1, p2, p3]).then(res => {
    let result = res.join('')
    console.log(result);
})